import useDataApi from '@/hooks/useDataApi/useDataApi';
import { getSubTaskList, getUnDoneSubTaskList, getAfterTaskList, getCancelSubTaskList } from '../services';

export const useSubTaskList = query => useDataApi(getSubTaskList, query);

export const useUnDoneSubTaskList = query => useDataApi(getUnDoneSubTaskList, query);

export const useCancelSubTaskList = query => useDataApi(getCancelSubTaskList, query);

export const useAfterTaskList = query => useDataApi(getAfterTaskList, query);
